<template>
  <el-table-column :prop="columnData.prop" :label="columnData.label" align="center">
    <hm-table-column
      v-for="(item, index) in columnData.children"
      v-show="columnData.children && columnData.children.leading > 0"
      :key="`column-${index}`"
      :columnData="item"
    >
    </hm-table-column>
  </el-table-column>
</template>

<script>
export default {
  name: 'hm-table-column',
  props: {
    columnData: {
      type: Object,
      default: () => []
    }
  }
}
</script>

<style scoped></style>
